home *** CD-ROM | disk | FTP | other *** search
/ Hacker 3 / HACKER03.ISO / Igre / Quake Goodies / Botovi.exe / ZEUS10 / SOURCE.ZIP / IMPULSE2.QC < prev    next >
Encoding:
Text File  |  1996-08-04  |  1.1 KB  |  54 lines

  1. /*
  2. ==============================================================================
  3.  
  4. Secondary Impulse Command Checker
  5.  
  6. ==============================================================================
  7. */
  8.  
  9.  
  10. //=============================================================
  11. // CheckSecondaryImpulseCommands - Called by weapons.qc before
  12. //                                   processing impulses
  13. //=============================================================
  14. void () CheckSecondaryImpulseCommands =
  15. {
  16.     if (self.impulse == BOT_TOGGLE)
  17.         BotToggle();
  18.     if (self.impulse == BOT_AUTO_TOGGLE)
  19.         BotAutoToggle();
  20.     if (self.impulse == BOT_MOVE_FIRE)
  21.     {
  22.         if (self.bot_auto)
  23.             BotFire();
  24.         else
  25.             BotMoveToggle();
  26.     }
  27.     if (self.impulse == BOT_LEFT_FIRE_TOGGLE)
  28.     {
  29.         if (self.bot_auto)
  30.             BotFireToggle();
  31.         else
  32.             BotTurnLeft();
  33.     }
  34.     if (self.impulse == BOT_RIGHT_TELEPORT)
  35.     {
  36.         if (self.bot_auto)
  37.             BotTeleportHome();
  38.         else
  39.             BotTurnRight();
  40.     }
  41.  
  42.         if (self.impulse == BOT_LIGHT_TOGGLE)
  43.         {
  44.           BotLightToggle ();
  45.         }
  46.  
  47.         if (self.impulse == BOT_GIVE_STATUS)
  48.         {
  49.           BotGiveStatus ();
  50.         }
  51.  
  52.     return;
  53. };
  54.